/**
 * @Title:  MicMapBean.java 
 * @Copyright:  XXX Co., Ltd. Copyright YYYY-YYYY,  All rights reserved 
 * @Description:  TODO<请描述此文件是做什么的> 
 * @author:  MeiYi 
 * @data:  2016-4-28 下午3:36:40 
 * @version:  V1.0 
 */

package artid.com.arttogoa.parser;

import java.io.Serializable;

/**
 * TODO<请描述这个类是干什么的>
 * 
 * @author 熊彬
 * @data: 2016-4-28 下午3:36:40
 * @version: V1.0
 */
public class MicMapBean implements Serializable {

	/**
	 * TODO<请描述这个方法是干什么的>
	 * 
	 * @throw
	 * @return
	 */
	private static final long serialVersionUID = 1L;
	private int id;
	private PostionPoint pf;
	private String Image;
	private String Image200;
	private String info; 
	private String imgtype;
	private boolean artMictype;
	private String newInfo;
	private String newImage;
	private String newImage200;
	private String url;
	

	public boolean isArtMictype() {
		return artMictype;
	}

	public void setArtMictype(boolean artMictype) {
		this.artMictype = artMictype;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getNewImage200() {
		return newImage200;
	}

	public void setNewImage200(String newImage200) {
		this.newImage200 = newImage200;
	}

	public String getImage200() {
		return Image200;
	}

	public void setImage200(String image200) {
		Image200 = image200;
	}

	public String getNewImage() {
		return newImage;
	}

	public void setNewImage(String newImage) {
		this.newImage = newImage;
	}

	public String getNewInfo() {
		return newInfo;
	}

	public void setNewInfo(String newInfo) {
		this.newInfo = newInfo;
	}

	public String getImgtype() {
		return imgtype;
	}

	public void setImgtype(String imgtype) {
		this.imgtype = imgtype;
	}

	public int getId() {
		return id;
	}

	public void setId(int index) {
		this.id = index;
	}

	public PostionPoint getPf() {
		return pf;
	}

	public void setPf(PostionPoint pf) {
		this.pf = pf;
	}

	public String getImage() {
		return Image;
	}

	public void setImage(String image) {
		this.imgtype = getExtensionName(image);
		Image = image;

	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		newInfo = info;
		this.info = info;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}


	@Override
	public String toString() {
		return "MicMapBean [id=" + id + ", pf=" + pf + ", Image=" + Image
				+ ", info=" + info + ", imgtype=" + imgtype + ", newInfo="
				+ newInfo + ", newImage=" + newImage + "]";
	}

	/*
	 * Java文件操作 获取文件扩展名
	 */
	public static String getExtensionName(String filename) {
		if ((filename != null) && (filename.length() > 0)) {
			int dot = filename.lastIndexOf('.');
			if ((dot > -1) && (dot < (filename.length() - 1))) {
				return filename.substring(dot + 1);
			}
		}
		return filename;
	}
}
